var Ie=Object.defineProperty,be=Object.defineProperties;var Be=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var Ue=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var ne=(e,n,a)=>n in e?Ie(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,ae=(e,n)=>{for(var a in n||(n={}))Ue.call(n,a)&&ne(e,a,n[a]);if(de)for(var a of de(n))Me.call(n,a)&&ne(e,a,n[a]);return e},pe=(e,n)=>be(e,Be(n));var V=(e,n,a)=>(ne(e,typeof n!="symbol"?n+"":n,a),a);import{d as se,r as k,m as _,c as w,a as r,w as c,b as g,o as O,e as b,t as M,f as p,g as oe,$ as E,S as Ge,L as Je,V as He,h as Ve,i as Ke,D as xe,l as ge,M as ze,j as K,F as ve,k as fe,n as je,p as Xe,q as Ye,s as qe,u as We,A as Ze}from"./vendor.d0afe1c7.js";const Qe=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const v of d.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&s(v)}).observe(document,{childList:!0,subtree:!0});function a(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerpolicy&&(d.referrerPolicy=u.referrerpolicy),u.crossorigin==="use-credentials"?d.credentials="include":u.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(u){if(u.ep)return;u.ep=!0;const d=a(u);fetch(u.href,d)}};Qe();var x;(function(e){e[e.SEARCH_RESULT=0]="SEARCH_RESULT",e[e.RESULT_TARGET_PAGE=1]="RESULT_TARGET_PAGE"})(x||(x={}));var B;(function(e){e[e.OPEN=0]="OPEN",e[e.CLOSE=1]="CLOSE"})(B||(B={}));var et=se({props:["maxStep","restStep","appStatus"],setup(e,n){const{emit:a}=n,s=k(""),u=()=>{if(!s.value)return _.warn("\u8BF7\u8F93\u5165\u95EE\u9898\u7F16\u53F7"),!1;a("toggleAppStatus")},d=v=>{s.value=v.target.value};return window.__setTopic=v=>{s.value=v},window.__getTopic=()=>s.value,{toggleAppStatus:u,APP_STATUS:B,topicInput:s,onTopicInputChange:d}}}),he=(e,n)=>{const a=e.__vccOpts||e;for(const[s,u]of n)a[s]=u;return a};const tt={style:{display:"flex","align-items":"center"}},nt=b(" \xA0\xA0 "),at=b(" \xA0\xA0 ");function st(e,n,a,s,u,d){const v=g("a-tag"),D=g("a-input"),T=g("a-switch"),S=g("a-statistic"),h=g("a-row"),N=g("a-divider"),P=g("a-page-header");return O(),w("div",null,[r(P,{title:"\u8BB0\u5F55\u5DE5\u5177","sub-title":"\u8F85\u52A9\u8BB0\u5F55\u641C\u7D22\u884C\u4E3A"},{tags:c(()=>[r(v,{color:e.appStatus===e.APP_STATUS.OPEN?"green":"grey"},{default:c(()=>[b(M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F"),1)]),_:1},8,["color"])]),extra:c(()=>[p("div",tt,[r(D,{onChange:e.onTopicInputChange,disabled:e.appStatus===e.APP_STATUS.OPEN,value:e.topicInput,class:"topic-input",placeholder:"\u8F93\u5165\u95EE\u9898\u7F16\u53F7",style:{width:"180px"}},null,8,["onChange","disabled","value"]),nt,r(T,{checked:e.appStatus===e.APP_STATUS.OPEN,onClick:e.toggleAppStatus},null,8,["checked","onClick"]),at,p("span",null,M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F\u8BB0\u5F55"),1)])]),default:c(()=>[r(h,{type:"flex"},{default:c(()=>[r(S,{title:"\u5269\u4F59\u64CD\u4F5C\u6B65\u9AA4",value:`${e.restStep} / ${e.maxStep}`},null,8,["value"])]),_:1}),r(N)]),_:1})])}var ot=he(et,[["render",st]]);const ut="http://8.142.44.105:3000",ue=e=>`${ut}${e}`,lt=async(e,n={})=>(await oe.get(`${ue("/search")}`,{params:{keyword:e,engine:"bing",filters:JSON.stringify(n)}})).data,rt=async e=>(await oe.get(`${ue("/extract/web")}?url=${e}`)).data,it=async e=>(await oe.post(`${ue("/record/action")}`,e)).data,_e=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",ct=(e=Date.now())=>{const n=new Date(e),a=n.getFullYear().toString().padStart(2,"0"),s=(n.getMonth()+1).toString().padStart(2,"0"),u=n.getDate().toString().padStart(2,"0"),d=n.getHours().toString().padStart(2,"0"),v=n.getMinutes().toString().padStart(2,"0"),D=n.getSeconds().toString().padStart(2,"0");return`${a}-${s}-${u} ${d}:${v}:${D}`},me=()=>Math.random().toString(16).substring(2),m=class{constructor(n,a){V(this,"resultLength",0);V(this,"currentFocusResultIndex",0);if(this.resultLength=E(`.${m.findElementClassName}`).length,this.currentFocusResultIndex=-1,n){const[,s]=m.replaceSearchText(E(n).text(),a);E(`${n}`).html(s)}E.each(E(`.${m.findElementClassName}`),(s,u)=>{E(u).addClass(`${m.findElementClassName}-${s}`),E(u).data("top",E(u)[0].offsetTop),s===E(`.${m.findElementClassName}`).length-1&&E(u).addClass(`${m.findElementClassName}-end`)})}next({elementClassName:n}){this.currentFocusResultIndex=this.currentFocusResultIndex+1,E(`.${m.findElementClassName}`).removeClass(`${m.findElementClassName}-active`);const a=E(`.${m.findElementClassName}-${this.currentFocusResultIndex}`),s=a.data("top");a.addClass(`${m.findElementClassName}-active`),E(`.${n}`)[0].scrollTo(0,s-91),a.hasClass(`${m.findElementClassName}-end`)&&_.info("\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u4E2A\u4E86")}};let R=m;V(R,"findElementClassName","__find-item"),V(R,"lastFindKeyword",""),V(R,"clearSearchText",n=>{E(`.${m.findElementClassName}`).attr("class",m.findElementClassName);const a=new RegExp(`<span class="${m.findElementClassName}">(.*?)</span>`,"igm");return n.replace(a,"$1")}),V(R,"replaceSearchText",(n,a)=>{m.lastFindKeyword&&(n=m.clearSearchText(n));const s=new RegExp(`${a}`,"igm");if(!s.test(n))return[!1,n];const d=n.replace(s,`<span class="${m.findElementClassName}">${a}</span>`);return m.lastFindKeyword=a,[!0,d]});const dt=["bilibili.com"],pt=e=>(e=JSON.parse(JSON.stringify(e)),e.filter(n=>!dt.some(a=>n.href.includes(a)))),W=100,Se="result-content",Z=3,gt=500;var vt=se({components:{HeaderAction:ot,SearchOutlined:Ge,LeftOutlined:Je,VerticalAlignBottomOutlined:He,VerticalAlignTopOutlined:Ve,VerticalAlignMiddleOutlined:Ke,DownOutlined:xe},setup(){const e=k(B.CLOSE),n=k(""),a=k([]),s=k([]),u=k(W),d=k(!1),v=k(""),D=k(new R),T=k(""),S=k(0),h=k(0),N=k([]),P=k([]),J=k(""),$=()=>a.value[a.value.length-1]||{},U=()=>$().type===x.RESULT_TARGET_PAGE,L=()=>$().type===x.SEARCH_RESULT,z=()=>JSON.parse(JSON.stringify(s.value.map(t=>t.datas))),A=t=>{var o;t=t||{},t.state=pe(ae({},JSON.parse(JSON.stringify((o=t==null?void 0:t.state)!=null?o:{}))),{digests:s.value,content:a.value,keyword:n.value,loading:d.value,findKeyword:v.value,stepCount:u.value,curResultChunk:S.value,curTargetPageResultChunk:h.value,topic:window.__getTopic(),appStatus:e.value}),t.undo=t.undo||(({op:l})=>{const{state:i}=l;s.value=i.digests,a.value=i.content,n.value=i.keyword,d.value=i.loading,v.value=i.findKeyword,u.value=i.stepCount,S.value=i.curResultChunk,h.value=i.curTargetPageResultChunk,J.value=i.topic,window.__setTopic(i.topic),e.value=i.appStatus}),P.value.push(t)},Y=()=>{if(!P.value.length){_.info("\u6CA1\u6709\u53EF\u4EE5\u64A4\u9500\u7684\u6B65\u9AA4");return}if(P.value.length===1){_.info("\u5DF2\u7ECF\u662F\u6700\u524D\u4E00\u6B65\u4E86");return}const t=P.value.pop();t==null||t.undo({op:t})},F=(t=-1)=>{u.value=u.value+t,u.value<=0&&(q(),_.info("\u64CD\u4F5C\u6B65\u9AA4\u8FBE\u5230\u4E0A\u9650\uFF0C\u81EA\u52A8\u7ED3\u675F\u672C\u6B21\u6570\u636E\u6536\u96C6"))},Q=()=>{d.value=!0},C=()=>{d.value=!1},H=()=>{a.value.pop()},j=()=>{var o,l,i,f,y;const t=$();return{keyword:n.value,triggerAt:Date.now(),stackLength:a.value.length,step:W-u.value,traceId:T.value,currentPageInfo:{title:(l=(o=t==null?void 0:t.data)==null?void 0:o.title)!=null?l:"",type:(i=t==null?void 0:t.type)!=null?i:"",href:(y=(f=t==null?void 0:t.data)==null?void 0:f.href)!=null?y:"",scrollTop:E(`.${Se}`).scrollTop()||0}}},Ee=()=>L()?ee():re(),I=(t,o={})=>{N.value.push(ae({action:t,details:o,pageContentInViewport:Ee(),digests:z(),operateStack:[...P.value]},j()))},ye=async t=>{A(),Q();try{const o=await lt(n.value,{domain:ge.exports.isArray(t)?t:[]});C(),a.value=[],o.data=pt(o.data),a.value.push({type:x.SEARCH_RESULT,data:o.data}),S.value=0,F(),I("PRESS_SEARCH",{keyword:n.value,result:o.data})}catch{}},le=t=>{const o=S.value*Z,l=o+Z;for(let i=o;i<l;i++)t(i)},Te=()=>JSON.parse(JSON.stringify($())),ee=()=>{const t=[],o=$();return le(l=>{o.data[l]&&t.push(o.data[l])}),t},ke=()=>JSON.parse(JSON.stringify(ee())),Ae=async t=>{A(),d.value=!0;const o=await rt(t);if(d.value=!1,o.code===0){const l=ge.exports.chunk(E(`<div>${o.data.html}</div>`.replace(/<\/(div|p)>/gim,"</div>!!--break-line--!!")).text().replace(/\s+/gim," ").replace(/<\/?.+?>/gim," ").replace(/[\r\n]/gim,`
`).replace(/!!--break-line--!!/gim,"<br />"),gt).map(i=>[...new Set(i.join("").split("<br />"))].join("<br />"));a.value.push({type:x.RESULT_TARGET_PAGE,data:{html:l,href:o.data.href}}),h.value=0,F(),I("LOAD_PAGE_DETAIL",{href:t,pageMainContent:l})}else _.error(o.message)},re=(t,o=!0)=>{const l=$();if(!l.data)return;const i=l.data.html[t||h.value];try{if(!o)return E.trim(E(`<div>${i}</div>`).text())}catch(f){console.error(f)}return E.trim(i)},we=t=>(A(),t=t||_e(),typeof t!="string"&&(t=_e()),t?U()?(s.value.push({datas:[{title:`${ct()}`,desc:t,chunkIndex:h.value}],checked:!1}),F(),I("ADD_DIGEST",{text:t}),!0):(_.info("\u8BF7\u5728\u5185\u5BB9\u8BE6\u60C5\u9875\u6807\u6CE8"),!1):(_.info("\u65E0\u9009\u4E2D\u5185\u5BB9"),!1)),te=()=>{a.value=[],n.value="",s.value=[],d.value=!1,v.value="",N.value=[],D.value=new R,T.value="",u.value=W,J.value=""},Oe=()=>{ze.confirm({okText:"\u786E\u8BA4\u91CD\u7F6E",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u91CD\u7F6E\u5417\uFF1F",onOk(){te()}})},q=()=>{if(A(),e.value===B.OPEN){e.value=B.CLOSE,I("RECORD_CLOSE",{digests:z()}),_.warn("\u6B63\u5728\u4E0A\u4F20\u8BB0\u5F55\u6570\u636E");const t={topic:J.value,userAgent:navigator.userAgent,actions:N.value,digests:s.value,tractId:T.value,createdAt:Date.now()};return d.value=!0,console.log(t),it(t).then(()=>{_.success("\u8BB0\u5F55\u6570\u636E\u4E0A\u4F20\u6210\u529F"),te()}).catch(o=>{te(),_.error(o.message)}),t}else e.value=B.OPEN,T.value=`${me()}${me()}`,J.value=window.__getTopic(),I("RECORD_START",{})},Re=()=>{if(L()){if(S.value<=0){_.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),S.value=S.value-1}else if(U()){if(h.value<=0){_.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),h.value=h.value-1}F(),I("TRIGGER_SCROLL_UP"),setTimeout(()=>{D.value=new R})},$e=()=>{const t=$();return L()?Math.ceil(t.data.length/Z)-1:U()?t.data.html.length:0},De=()=>{const t=$();if(L()){if(S.value>=Math.ceil(t.data.length/Z)-1){_.info("\u6700\u540E\u4E00\u9875\u4E86");return}A(),S.value=S.value+1}else if(U()){if(h.value>=t.data.html.length-1){_.info("\u6700\u540E\u4E00\u9875\u4E86");return}A(),h.value=h.value+1}F(),I("TRIGGER_SCROLL_DOWN"),setTimeout(()=>{D.value=new R})},Ne=()=>{if(L()){if(S.value===0){_.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),S.value=0}else if(U()){if(h.value===0){_.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),h.value=0}F(),I("TRIGGER_SCROLL_TO_TOP")},Pe=()=>{A(),H(),F(),I("PAGE_GO_BACK")},Le=()=>{const t=JSON.parse(JSON.stringify($()));if(L())le(o=>{const l=t.data[o],[i,f]=R.replaceSearchText(l.title,v.value),[y,G]=R.replaceSearchText(l.summary,v.value);l.title=f,l.summary=G});else if(U()){const o=t.data.html[h.value],[l,i]=R.replaceSearchText(o,v.value);t.data.html[h.value]=i}H(),a.value.push(t),setTimeout(()=>{D.value=new R})},Fe=t=>{n.value=t},ie=t=>{window.__setTopic(t)},ce={CONTENT_TYPE:x,open:()=>e.value===B.OPEN?!1:(q(),!0),over:()=>{if(e.value===B.CLOSE)return!1;const t=q();return JSON.parse(JSON.stringify(t))},setTopic:ie,findKeyword:v,keyword:n,setKeyword:Fe,search:ye,find:Le,content:a,getContentStackTop:$,popContentStack:H,getCurrentResultChunkList:ee,getCurrentResultChunkListDeep:ke,getCurTargetPageResultChunkText:re,getPageContent:Ae,addDigest:we,digests:s,digestDescGetter:t=>t.map(o=>o.desc).join(""),mergeDigest:(...t)=>{if(t.forEach(y=>{s.value[y]&&(s.value[y].checked=!0)}),s.value.reduce((y,G)=>G.checked?y+1:y,0)<=1)return _.info("\u8BF7\u9009\u62E9\u4E24\u4E2A\u4EE5\u4E0A\u7684\u6458\u8981\u8FDB\u884C\u5408\u5E76"),!1;A();let l;const i=[],f=z();for(let y=0;y<s.value.length;y++){const G=s.value[y];G.checked&&(i.push(y),l?l.datas=[...l.datas,...G.datas]:l=G),G.checked=!1}for(let y=i.length-1;y>=1;y--)s.value.splice(i[y],1);return F(),I("MERGE_DIGEST",{merges:i,before:f,after:z()}),!0},rmDigest:t=>{const o=s.value.findIndex(l=>l===t);s.value.splice(o,1)},changeDigestIndex:(t,o)=>{const l=s.value.findIndex(f=>f===t),i=s.value[l];if(l===0){_.info("\u5DF2\u7ECF\u5728\u6700\u524D\u4E86");return}if(l===s.value.length-1){_.info("\u5DF2\u7ECF\u5728\u6700\u540E\u4E86");return}s.value.splice(l,1),s.value.splice(l+o,0,i)},getDigestsValue:()=>JSON.parse(JSON.stringify(s.value)),stepCount:u,MAX_STEP_COUNT:W,APP_STATUS:B,appStatus:e,toggleAppStatus:q,scrollUp:Re,scrollDown:De,scrollToTop:Ne,doBack:Pe,loading:d,findNext:()=>{D.value.next({elementClassName:Se})},curResultChunk:S,getCurrentResultDeepClone:Te,curTargetPageResultChunk:h,getCurPageChunkSize:$e,isResultContentPage:U,isSearchResultPage:L,reset:Oe,undo:Y,coverActions:t=>{const l=JSON.parse(JSON.stringify(t)).pop().operateStack;console.log(l),l.forEach(i=>{i.undo=()=>{const f=i.state;ie(f.topic),s.value=f.digests,a.value=f.content,n.value=f.keyword,d.value=f.loading,v.value=f.findKeyword,u.value=f.stepCount,S.value=f.curResultChunk,h.value=f.curTargetPageResultChunk,J.value=f.topic,N.value.pop(),setTimeout(()=>{e.value=f.appStatus})}}),P.value=l,Y()},ops:P};return window.__operation=ce,ce}});const X=e=>(Xe("data-v-388c5faa"),e=e(),Ye(),e),ft={class:"main-wrap"},ht={key:0,class:"overlay"},_t={style:{"margin-top":"-8px",display:"flex","justify-content":"space-between"}},mt=b(" \xA0 "),St={style:{"margin-right":"12px"}},Ct=b("\u64A4\u9500"),Et=b(" \xA0 "),yt=b("\u91CD\u7F6E"),Tt={class:"content-container"},kt={class:"left"},At={style:{"white-space":"nowrap",display:"flex","align-items":"center"}},wt=X(()=>p("span",null,"\u4E0B\u4E00\u4E2A",-1)),Ot=X(()=>p("span",null,"\u5411\u4E0A\u7FFB\u9875",-1)),Rt=X(()=>p("span",null,"\u5411\u4E0B\u7FFB\u9875",-1)),$t={style:{"margin-right":"8px"}},Dt={key:0},Nt={key:1},Pt=X(()=>p("span",null,"\u56DE\u5230\u9876\u7AEF",-1)),Lt={class:"result-content"},Ft={key:0},It={class:"result-item"},bt={class:"result-item-title"},Bt=["onClick","innerHTML","data-url"],Ut=["innerHTML"],Mt={key:0},Gt={key:1,style:{width:"717px"}},Jt=["innerHTML"],Ht={key:2},Vt=X(()=>p("div",{class:"center content-tip"}," \u6682\u65E0\u5185\u5BB9 ",-1)),Kt=[Vt],xt={class:"right"},zt=b("\u5C06\u9009\u4E2D\u5185\u5BB9\u6DFB\u52A0\u5230\u6458\u8981"),jt=b("\u5408\u5E76\u6458\u8981"),Xt={style:{position:"relative"}},Yt={style:{position:"absolute",left:"-24px"}};function qt(e,n,a,s,u,d){const v=g("header-action"),D=g("LeftOutlined"),T=g("a-button"),S=g("a-input-search"),h=g("DownOutlined"),N=g("a-tooltip"),P=g("a-divider"),J=g("VerticalAlignTopOutlined"),$=g("VerticalAlignBottomOutlined"),U=g("VerticalAlignMiddleOutlined"),L=g("a-card"),z=g("a-checkbox"),A=g("a-list-item-meta"),Y=g("a-list-item"),F=g("a-list"),Q=g("a-spin");return O(),w("div",ft,[r(v,{"max-step":e.MAX_STEP_COUNT,"rest-step":e.stepCount,"app-status":e.appStatus,onToggleAppStatus:e.toggleAppStatus},null,8,["max-step","rest-step","app-status","onToggleAppStatus"]),p("div",{class:"op-wrap",style:je(e.appStatus===e.APP_STATUS.CLOSE?"opacity: .3;":"")},[e.appStatus===e.APP_STATUS.CLOSE?(O(),w("div",ht)):K("",!0),p("div",_t,[p("div",null,[r(T,{type:"link",disabled:!e.content.length,size:"large",onClick:e.doBack},{icon:c(()=>[r(D)]),default:c(()=>[b(" \u8FD4\u56DE("+M(e.content.length)+") ",1)]),_:1},8,["disabled","onClick"]),mt,r(S,{class:"keyword-input",placeholder:"\u641C\u7D22\u5173\u952E\u8BCD",size:"large","enter-button":"",value:e.keyword,"onUpdate:value":n[0]||(n[0]=C=>e.keyword=C),onSearch:e.search},null,8,["value","onSearch"])]),p("div",St,[r(T,{onClick:e.undo},{default:c(()=>[Ct]),_:1},8,["onClick"]),Et,r(T,{onClick:e.reset,type:"dashed",danger:"",ghost:""},{default:c(()=>[yt]),_:1},8,["onClick"])])]),r(Q,{spinning:e.loading},{default:c(()=>[p("div",Tt,[p("div",kt,[p("div",null,[r(L,{title:"\u6D4F\u89C8\u5185\u5BB9",class:"contents"},{extra:c(()=>[p("div",At,[r(S,{placeholder:"\u5185\u5BB9\u67E5\u627E",value:e.findKeyword,"onUpdate:value":n[1]||(n[1]=C=>e.findKeyword=C),style:{width:"150px","margin-right":"12px"},onSearch:e.find},null,8,["value","onSearch"]),r(N,{placement:"top"},{title:c(()=>[wt]),default:c(()=>[r(T,{onClick:n[2]||(n[2]=C=>e.findNext())},{icon:c(()=>[r(h)]),_:1})]),_:1}),r(P,{type:"vertical"}),r(N,{placement:"top"},{title:c(()=>[Ot]),default:c(()=>[r(T,{style:{"margin-right":"8px"},onClick:e.scrollUp},{icon:c(()=>[r(J)]),_:1},8,["onClick"])]),_:1}),r(N,{placement:"top"},{title:c(()=>[Rt]),default:c(()=>[r(T,{style:{"margin-right":"8px"},onClick:e.scrollDown},{icon:c(()=>[r($)]),_:1},8,["onClick"])]),_:1}),p("div",$t,[e.isSearchResultPage()?(O(),w("span",Dt,M(e.curResultChunk+1)+"/"+M(e.getCurPageChunkSize()+1),1)):K("",!0),e.isResultContentPage()?(O(),w("span",Nt,M(e.curTargetPageResultChunk+1)+"/"+M(e.getCurPageChunkSize()),1)):K("",!0)]),r(N,{placement:"top"},{title:c(()=>[Pt]),default:c(()=>[r(T,{onClick:e.scrollToTop},{icon:c(()=>[r(U)]),_:1},8,["onClick"])]),_:1})])]),default:c(()=>[p("div",Lt,[e.isSearchResultPage()?(O(),w("div",Ft,[(O(!0),w(ve,null,fe(e.getCurrentResultChunkList(),(C,H)=>(O(),w("div",null,[p("div",It,[p("span",bt,[p("strong",{class:qe(`result-item-index-${H}`),onClick:j=>e.getPageContent(C.mdurl||C.href),innerHTML:C.title,"data-url":C.mdurl||C.href},null,10,Bt)]),p("div",{class:"result-item-summary",innerHTML:C.summary||C.rich},null,8,Ut)])]))),256)),e.getContentStackTop().data.length?K("",!0):(O(),w("div",Mt," \u65E0\u641C\u7D22\u7ED3\u679C "))])):K("",!0),e.isResultContentPage()?(O(),w("div",Gt,[p("div",{class:"content-container-element",style:{width:"717px","word-break":"break-all","white-space":"pre-wrap"},innerHTML:e.getCurTargetPageResultChunkText()},null,8,Jt)])):K("",!0),e.content.length?K("",!0):(O(),w("div",Ht,Kt))])]),_:1})])]),p("div",xt,[r(L,{title:"\u6458\u8981",class:"summaries"},{extra:c(()=>[r(T,{onClick:e.addDigest,type:"primary",style:{"margin-right":"4px"}},{default:c(()=>[zt]),_:1},8,["onClick"]),r(T,{onClick:e.mergeDigest},{default:c(()=>[jt]),_:1},8,["onClick"])]),default:c(()=>[p("div",null,[r(F,{"item-layout":"horizontal","data-source":e.digests},{renderItem:c(({item:C,index:H})=>[r(Y,null,{actions:c(()=>[r(z,{checked:C.checked,"onUpdate:checked":j=>C.checked=j},null,8,["checked","onUpdate:checked"])]),default:c(()=>[r(A,{description:e.digestDescGetter(C.datas)},{title:c(()=>[p("div",Xt,[p("span",Yt,M(H+1),1),p("span",null,[(O(!0),w(ve,null,fe(C.datas,j=>(O(),w("div",null,M(j.title),1))),256))])])]),_:2},1032,["description"])]),_:2},1024)]),_:1},8,["data-source"])])]),_:1})])])]),_:1},8,["spinning"])],4)])}var Wt=he(vt,[["render",qt],["__scopeId","data-v-388c5faa"]]);const Zt=p("div",{class:"bg"},null,-1),Qt=se({setup(e){return(n,a)=>(O(),w("div",null,[Zt,r(Wt)]))}});const Ce=We(Qt);Ce.use(Ze);Ce.mount("#app");
